# type函数，判断类型
print("*" * 50 + "分界线" + "*" * 50)
name = "窝头"
print(type(name))

intVar = 2 ** 5000
print(type(intVar))


# P164
# 不同类型变量之间的运算
print("*" * 50 + "分界线" + "*" * 50)
i = 10
f = 10.5
b = True
print(i - f)
print(i * b)


# P165
# 字符串的拼接
print("*" * 50 + "分界线" + "*" * 50)
firstName = "三"
lastName = "张"
print(firstName + lastName)


# P166~P168
# 用户交互，通过键盘输入，类型转换
print("*" * 50 + "分界线" + "*" * 50)
account = input("请输入账号：")
print(float(account))


# P169
# 买苹果的增强版
# 需求：收银员输入苹果价格，收银员输入用户购买苹果的重量，计算并且输出付款金额
print("*" * 50 + "分界线" + "*" * 50)
applePrice = float(input("请输入苹果的价格："))
appleWeight = float(input("请输入苹果的重量："))
print(applePrice * appleWeight)